//引入request
import request from '@/utils/request.js'


// 添加ppt
export const addPPT = (data) => {
  return request({
    method: 'POST',
    url: 'ppt/add',
    data: data
  })
}

// 删除ppt
export const delPPT = (params) => {
  return request({
    method: 'GET',
    url: 'ppt/delete',
    params: params
  })
}

// 获取ppt
export const getPPT = (params) => {
  return request({
    method: 'GET',
    url: 'ppt/get',
    params: params
  })
}

// 获取单个ppt
export const getOnePPT = (params) => {
  return request({
    method: 'GET',
    url: 'ppt/getone',
    params: params
  })
}

// 更新ppt
export const updatePPT = (data) => {
  return request({
    method: 'POST',
    url: 'ppt/update',
    data: data
  })
}